﻿using PowerHub.MES.Entities.BasicData;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace PowerHub.MES.Entities.Crew;

/// <summary>
/// 班组
/// </summary>
[Table("Crew_TeamBill")]
public partial class Crew_TeamBill : BaseEntity
{
    /// <summary>
    /// 班组编号
    /// </summary>
    public string? TeamNo { get; set; }

    /// <summary>
    /// 班组名称
    /// </summary>
    public string? TeamName { get; set; }

    /// <summary>
    /// 班组组长id
    /// </summary>
    public string? UserId { get; set; }

    /// <summary>
    /// 班组组长名称
    /// </summary>
    public string? UserIdName { get; set; }

    /// <summary>
    /// 班组类型id
    /// </summary>
    public string? TeamTypeId { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }



    //public virtual ICollection<Crew_SchedulingPlan> CrewSchedulingPlans { get; set; } = new List<Crew_SchedulingPlan>();

    public virtual ICollection<Crew_TeamBillDetial> CrewTeamBillDetials { get; set; } = new List<Crew_TeamBillDetial>();

    public virtual Crew_TeamType? TeamType { get; set; }
    public virtual BasicData_Userinfo? User { get; set; }


}
